package com.yhb.channel.impl.BJCJ;

import com.yhb.channel.ChannelFactory;
import com.yhb.channel.exception.PayChannelException;

public class BJCJException extends PayChannelException {
    /**
     * code域划分
     * 第1位 通道号
     * 第2-3位 错误类型
     * 第4-8位 通道错误码
     */

    public BJCJException(Long code, String message) {
        super(code, message);
        this.channelType = ChannelFactory.BJCJ;
        this.channelName = "北京畅捷";
    }

    public BJCJException(Long code, String message, Throwable nestedException) {
        super(code, message, nestedException);
        this.channelType = ChannelFactory.BJCJ;
        this.channelName = "北京畅捷";
    }

    public BJCJException(String code, String message, Throwable nestedException) {
        super(code, message, nestedException);
        this.channelType = ChannelFactory.BJCJ;
        this.channelName = "北京畅捷";
    }
}
